<div class="summary_box" id=<%= "comp_#{complaint.id}"%>>
  <div class="complaint_summary">
    <div class="title"><span><%= link_to complaint.title.titlecase, complaint_path(complaint)  %></span></div>
    <div class="description"><span><%= complaint.description%></span></div>
    <div class="category"><span><%= link_to complaint.category.title, category_path(complaint.category)%></span></div>
    <div class="creation_date"><span><%= complaint.created_at.strftime('%d %b %y')%></span></div>
  </div>
  <div class="complaint_tasks" style="float:right;">
    <div class="support">
      <p class="support_count"><%= complaint.support_count.nil? ? 0 : complaint.support_count %></p>
      <p class="support_task">
        <% if session[:supported_complaints]!=complaint.id %>
        <%= link_to_function "Support","support_complaint(#{complaint.id});" -%>
        <% else %>
          Supported
        <% end %>

      </p>
    </div>
  </div>
  <div class="clear"></div>
</div>

